package com.bcxk.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bcxk.entity.dto.Order;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author NieMingkun
 */
@Component
public interface OrderMapper extends BaseMapper<Order> {
    /*根据进店时间查询订单信息*/
     IPage<Order> getOrderByInTime(Page page, Long merchantId, String startTime, String endTime, String text, Long payState);
    /*根据离店时间查询订单信息*/
    IPage<Order>  getOrderByOutTime(Page page,Long merchantId ,String startTime ,String endTime ,String text ,Long payState);
    /*根据预定时间查询订单信息*/
    IPage<Order>  getOrderByReTime(Page page,Long merchantId ,String startTime ,String endTime ,String text ,Long payState);

    void orderUpdate(String orderNo, long state);

    //查询未支付的订单
    void updateOrderByOrderNos(String ordersNos);
}
